package aTurk2;

import java.util.Comparator;

public class ExpAndCostComperator implements Comparator<Problem>{
	@Override
	public int compare(Problem o1, Problem o2) {
		if(o1.expectancy+o1.cost>o2.expectancy+o2.cost)
			return 1;
		else if(o1.expectancy+o1.cost<o2.expectancy+o2.cost)
			return -1;
		else
			return 0;
	}
}
